home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
23
/
6
/
DISK2368.ZIP
/
ANSWERS
/
CH07_2B.HPP
< prev
next >
Wrap
Text File
|
1990-07-20
|
422b
|
24 lines
// Chapter 7 - Programming exercise 2
#ifndef TRUCKHPP
#define TRUCKHPP
#include "vehicle.hpp"
class truck : public vehicle {
int passenger_load;
float payload;
public:
void init_truck(int how_many = 2, float max_load = 24000.0);
float efficiency(void);
int passengers(void);
};
#endif
// Result of execution
//
// (this file cannot be executed)